package com.atqinke.designpattern.behavioraltype.responsibility;

/**
 * @BelongsProject: BasicConnection
 * @BelongsPackage: com.atqinke.designpattern.behavioraltype.responsibility
 * @Author: NieHk
 * @CreateTime: 2022-08-28  23:56
 * @Description: 总经理
 * @Version: 1.0
 */
public class GeneralManager extends Handler {

    public GeneralManager() {
        //部门经理处理7天以上的请假
        super(Handler.NUM_SEVEN,Handler.NUM_FINITY);
    }

    @Override
    protected void handleLeave(LeaveRequest leave) {
        System.out.println(leave.getName() + "请假" + leave.getNum() + "天," + leave.getContent() + "。");
        System.out.println("总经理审批：同意。");
    }
}
